package com.x86.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author 风亦未止
 * @date 2022/4/10 19:40
 */
@ApiModel(value = "硬盘smart信息")
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "disk_smart")
public class DiskSmart implements Serializable {

    /**
     * 硬盘id
     */
    @TableId(value = "diskId", type = IdType.INPUT)
    @ApiModelProperty(value = "硬盘序列序列号")
    private String diskid;

    /**
     * 错误读取率
     */
    @TableField(value = "readE")
    @ApiModelProperty(value = "错误读取率")
    private String reade;

    /**
     * 加电次数
     */
    @TableField(value = "aCount")
    @ApiModelProperty(value = "加电次数")
    private Integer acount;

    /**
     * 重新分配扇区数
     */
    @TableField(value = "rSector")
    @ApiModelProperty(value = "重新分配扇区数")
    private Integer rsector;

    /**
     * 磁盘校准重试次数
     */
    @TableField(value = "retry")
    @ApiModelProperty(value = "磁盘校准重试次数")
    private Integer retry;

    /**
     * ULTRA DMA奇偶校验错误率
     */
    @TableField(value = "ULTRA_DMA")
    @ApiModelProperty(value = "ULTRA DMA奇偶校验错误率")
    private String ultraDma;

    /**
     * 多区域错误率
     */
    @TableField(value = "Multi_zoneE")
    @ApiModelProperty(value = "多区域错误率")
    private String multiZonee;

    /**
     * 硬盘启动重试次数
     */
    @TableField(value = "spin_upCount")
    @ApiModelProperty(value = "硬盘启动重试次数")
    private Integer spinUpcount;

    private static final long serialVersionUID = 1L;

    public static final String COL_DISKID = "diskId";

    public static final String COL_READE = "readE";

    public static final String COL_ACOUNT = "aCount";

    public static final String COL_RSECTOR = "rSector";

    public static final String COL_RETRY = "retry";

    public static final String COL_ULTRA_DMA = "ULTRA_DMA";

    public static final String COL_MULTI_ZONEE = "Multi_zoneE";

    public static final String COL_SPIN_UPCOUNT = "spin_upCount";
}